/**
* @author AlbertDarren
* @contact 2563491540@qq.com
*/
#include <cstdio>

using namespace std;

int main_1036()
{
    int n,row;
    char c;
    scanf("%d %c",&n,&c);
    if (n%2)
    {
        row=n/2+1;
    }
    else
    {
        row=n/2;
    }
    for (int i=0;i<n ;++i )
    {
        putchar(c);
    }
    putchar('\n');
    for (int i=1;i<(row-1) ;++i )
    {
        putchar(c);
        for (int j=0;j<(n-2) ;++j )
        {
            putchar(' ');
        }
        putchar(c);
        putchar('\n');
    }
    for (int i=0;i<n ;++i )
    {
        putchar(c);
    }
    putchar('\n');
	return 0;
}
